package com.qijian.maindata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 产品终检对象 main_final_inspection
 *
 * @author qijian
 * @date 2022-04-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_final_inspection")
public class FinalInspection extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    @Excel(name = "申请人")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "申请人")
    private Long applyUserId;

    @Excel(name = "申请人名称")
    @ApiModelProperty(value = "申请人名称")
    private String applyUserName;

    @Excel(name = "负责人")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "申请人")
    private Long chargeUserId;

    @Excel(name = "负责人名称")
    @ApiModelProperty(value = "申请人名称")
    private String chargeUserName;

    @Excel(name = "联系方式")
    @ApiModelProperty(value = "联系方式")
    private String contactWay;

    @Excel(name = "终检地址")
    @ApiModelProperty(value = "终检地址")
    private String location;

    @Excel(name = "项目id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @Excel(name = "项目名称")
    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @Excel(name = "终检内容")
    @ApiModelProperty(value = "终检内容")
    private String content;

    @Excel(name = "终检工序类型")
    @ApiModelProperty(value = "终检工序类型")
    private String processTypeName;

    @Excel(name = "是否完成检验")
    @ApiModelProperty(value = "是否完成检验")
    private Boolean isInspect;

    @Excel(name = "审核者")
    @ApiModelProperty(value = "审核者")
    private String approvalBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date approvalTime;

    @Excel(name = "审核状态")
    @ApiModelProperty(value = "审核状态")
    private ApprovalDescriptionEnum approvalStatus;

}
